﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Olemas.Models;

namespace Olemas.DataModels
{
    public class CourseModel
    {
        /// <summary>
        /// Gets all courses from database
        /// </summary>
        public static IEnumerable<Course> GetCourses()
        {
            var db = new OlemasDatabaseEntities();
            var courses = from course in db.Courses select course;
            return courses;
        }
    }
}